package com.example;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TController
 * @Description
 * @Author Yin
 * @Date 2021/4/12 16:12
 * @Version 1.0
 */
@RestController
public class TController {
    @RequestMapping("timeout")
    public String test(){
        long l = (long) (Math.random() * 3000L);
        try {
            Thread.sleep(l);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "熔断测试";
    }
}
